fixed request permission so that it gives proper response.