This really isn't enough code for us to debug. Can you post an SSCCE showing what you're doing?