bug fixes

Getting undefined error if params not set for request