Fixed Bug

Fixed minor bug with ajax call