Fixed onCreate and SurfaceAvailable bugs